from concurrent.futures import ThreadPoolExecutor


def task(i):
    print("{}正在执行任务".format(i))


pool = ThreadPoolExecutor(10)
for i in range(100):
    pool.submit(task, i)
